
import {
	debug,
  sWxopenidAndUserMetaKey,
	sNeedReset,
	sSettingAndJsonKey,
} from '../config.js';

const {
	storagerBase,
} = require('./storagerBase.js');


function validCheckKey(key) {
	// return key==='setting';
	// const ret = validKeyList.includes(key)
	return true;
}

function validCheckSetting(settingDict) {
	return true;
}



class StoragerWxopenidAndUserInfoClass extends storagerBase {

	constructor(debug, sk = sWxopenidAndUserMetaKey, needReset = false) {
		super(
			debug,
			sk,
			needReset,
			keyValidator = validCheckKey,
			valueValidator = validCheckSetting)
	}

}


let sk, needReset, keyValidator, valueValidator;
export const storagerWxopenidAndUserInfo = new StoragerWxopenidAndUserInfoClass(
	debug,
	sk = sSettingAndJsonKey,
	needReset = sNeedReset,
	keyValidator = validCheckKey,
	valueValidator = validCheckSetting,
)